import { categoryMenuApi } from "@/api/category"
export default {
    state: {
        categoryMenu: []
    },
    mutations: {
        changeCategoryMenu(state, data) {
            state.categoryMenu = data
        }
    },
    actions: {
        async changeCategoryMenu({ commit }) {
            let result = await categoryMenuApi()
            console.log(result);
            commit("changeCategoryMenu", result.data.data)
        }
    }

}